<?php
require_once($_SERVER["DOCUMENT_ROOT"] . "/all.conf.php");
require_once(__PHY_LIB . "/func/database.func.php");

function smarty_modifier_unit_id2ename($unit_id) {
    $unit_id = intval($unit_id);
    $oDB = connectMktDB();
    $sql = "SELECT unit_ename FROM mkt_unit WHERE unit_id = $unit_id LIMIT 1";
    $unit_ename = trim($oDB->getVar($sql));
    return $unit_ename;
}
?>